{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<js href="__PUBLIC__/js/admin/js.util.js"/>
	<js href="__PUBLIC__/js/admin/js.selectzone.js"/>
	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<style>
.add-article-cat-table tbody tr {height:40px; }
.add-article-cat-table tbody  td{height:40px; vertical-align:middle}
</style>

<div>
	<form method="post" action="__APP__/articlecat/<if condition="$act eq 'add_articlecat'">add_articlecat_ok<else/>mod_articlecat_ok</if>" name="theForm" onsubmit="return validate()">
		<table class="add-article-cat-table" cellspacing="1" cellpadding="3" width="100%">
			<tbody>
				<tr>
					<td  align="right">文章分类名称&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td>
						<input type="text" class="qs-input" name="cat_name" maxlength="60" size="30" value="{$cat_info.cat_name}"><span class="require-field">*</span>
					</td>
				</tr>
				<tr>
					<td  align="right">上级分类&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td>
						<select class="qs-select" name="parent_id" onchange="catChanged()">
							<option value="0">顶级分类</option>
							<volist name="article_cat_list" id="article_cat">
							{$arsticleCat.cat_name}
							<option value="{$article_cat.cat_id}"  cat_type="1" <if condition="$cat_info['parent_id'] eq $article_cat['cat_id']">selected</if> >{$article_cat.cat_name}</option>
							</volist>   
						</select>
					</td>
				</tr>
				<tr>
					<td  align="right">排序&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td>
						<input type="text" class="qs-input" name="sort_order" value="50" size="15">
					</td>
				</tr>
				<tr>
					<td  align="right">是否显示在导航栏&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td>
						<input type="radio" name="show_in_nav" value="1"> 是      
						<input type="radio" name="show_in_nav" value="0" checked="true"> 否    
					</td>
				</tr>
				<tr>
					<td  align="right">
						<a href="javascript:showNotice('notice_keywords');" title="点击此处查看提示信息">
							<img src="__PUBLIC__/image/admin/notice.gif" width="16" height="16" border="0" alt="点击此处查看提示信息">
						</a>关键字&nbsp;&nbsp;&nbsp;&nbsp;
					</td>
					<td>
						<input type="text" class="qs-input" name="keywords" maxlength="60" size="50" value="">
						<span class="notice-span" style="display:block" id="notice_keywords">关键字为选填项，其目的在于方便外部搜索引擎搜索</span>
						<br/>
					</td>
				</tr>
				<tr>
					<td  align="right">描述&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td>
						<textarea class="qs-textarea" name="cat_desc" cols="60" rows="4">{$cat_info.cat_desc}</textarea>
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center"><br>
						<input type="submit"  value=" 确定 ">
						<input type="reset" value=" 重置 ">
						<input type="hidden" name="act" value="insert">
						<input type="hidden" name="id" value="{$cat_info.cat_id}">
						<input type="hidden" name="old_catname" value="{$cat_info.cat_name}">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
</div>

